package com.jet.goods.domain.dto;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

@Data
public class SpecDto implements Serializable {

    private static final long serialVersionUID = 1L;
    /**
     * 规格名
     */
    @NotBlank(message = "规格名不能为空")
    private String name;

    /**
     * null为规格名，不为null为对应规格名的值
     */
    private String pid;
}
